Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description and label to demo jt #15598

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

TheRealHaoLiu
Copy link
Member

SUMMARY

Add description and label to the demo job template

request by @jamestalton

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
AWX VERSION

ADDITIONAL INFORMATION

@TheRealHaoLiu TheRealHaoLiu force-pushed the add-label-and-description-to-demo-jt branch from a422904 to cab92df Compare October 23, 2024 19:21
Copy link

sonarcloud bot commented Oct 23, 2024

@@ -4,7 +4,7 @@
from django.core.management.base import BaseCommand
from django.db import transaction
from crum import impersonate
from awx.main.models import User, Organization, Project, Inventory, CredentialType, Credential, Host, JobTemplate
from awx.main.models import User, Organization, Project, Inventory, CredentialType, Credential, Host, JobTemplate, Label
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheRealHaoLiu could you document how you tested this change?

Codecov reveals that nothing in this module is ever hit in the test suite: https://app.codecov.io/gh/ansible/awx/pull/15598#f9e72d3f63929dd1c3c1d53def0b69c6-L7. So the CI wouldn't be able to catch any regressions.

@@ -50,9 +50,11 @@ def _handle(self):

ssh_type = CredentialType.objects.filter(namespace='ssh').first()
c, _ = Credential.objects.get_or_create(
credential_type=ssh_type, name='Demo Credential', inputs={'username': getattr(superuser, 'username', 'null')}, created_by=superuser
credential_type=ssh_type,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a formatting-only change? I don't see any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants